package stocks.client.gui.controller;

import stocks.client.gui.model.*;
import stocks.client.gui.view.buySellFrame;
import stocks.client.gui.view.loginFrame;
import stocks.client.gui.view.mainFrame;
import stocks.client.gui.view.registerFrame;
import stocks.client.gui.view.viewFrame;
import stocks.client.gui.view.withdrawFrame;

public class controller {
	
	private buySellFrame bsView;
	private loginFrame lView;
	private registerFrame rView;
	private mainFrame mView;
	private viewFrame vView;
	private withdrawFrame wView;
	private model m;

	/**
	 * Constructor, takes model as a parameter
	 */
	public controller(model m)
	{
		this.m = m;
		this.bsView = m.getBuySellFrame();
		this.lView = m.getLoginFrame();
		this.mView = m.getMainFrame();
		this.rView = m.getRegisterFrame(); //get all frames test
		this.vView = m.getViewFrame();
		this.wView = m.getWithdrawFrame();
	}
}